package com.boco.blch.analysiser.compliance.HW.manager;

import com.boco.blch.analysiser.compliance.ComplianceResolved;

public class BOCO_ZooKeeper_LogAudit_LogRecordComplete implements ComplianceResolved{

	@Override
	public int realEchoResolved(String echoResult) {
		String str=echoResult.replaceAll(" ", "");
		String[] echoResult1=str.split("\n");
		String value="log4j.appender.RFAAUDIT.File=";
		if(echoResult != null && echoResult.trim().length() > 0){
			if(echoResult.contains(NotFindFile)){
				return FAILED;
			}else{
				String value1="";
				for(int i=0;i<echoResult1.length;i++){
					if(echoResult1[i].contains(value)){
						value1=echoResult1[i];
					}
				}
				if(str.contains("audit.logger=INFO")&&str.contains("LOG_LEVEL=INFO")&&
						value1.length()>value.length()){
					return SUCCESS;
				}
			}
		}
		return FAILED;
	}
	
	


}
